package com.chat.provider.demo.server.impl;

import com.chat.consumer.client.dto.UserInfoDTO;
import com.chat.consumer.client.server.UserService;
import com.chat.provider.core.Provider;
import org.springframework.stereotype.Service;

/**
 * @Auther created by haoteng on 2019/09/06
 */
@Provider
@Service
public class UserInfoServerImpl implements UserService {
    @Override
    public String getUserName(String userId) {
        return "haoteng";
    }

    @Override
    public UserInfoDTO getUser(String userId) {
        UserInfoDTO userInfoDTO = new UserInfoDTO();
        userInfoDTO.setUserName("haoteng");
        userInfoDTO.setUserId("110000011");
        userInfoDTO.setAddress("浙江省宁波市鄞州区XX街道XX小区");
        userInfoDTO.setAge(26);
        return null;
    }
}
